/*
 * watched-mountpoint.hpp
 * Jeff Wicks
 */

#ifndef WATCHEDMOUNTPOINT_HPP
#define WATCHEDMOUNTPOINT_HPP


#include <string>
#include <fstream>

/*
 * class WatchedMountPoint opens the Distrefine pidfile,
 * gets and holds a watched mount point string (the mount point
 * Distrefine is watching). It is anticipated there will be more than
 * one instance of these since there can be multiple mount points
 * being watched. I made this into a class to clean up a big
 * mess of procedural code.
 *
 * All we use this for, is to compare to mount_point and therefore
 * only need to return true or false.
 */
namespace mounts
{
	class WatchedMountPoint
	{
		std::string watched_mount_point;

	public:
		WatchedMountPoint(std::string filename);

		bool operator== (const std::string &rhs) const
		{
			if (rhs == watched_mount_point)
			{
				return true;
			}
			else return false;
		}
	};

}//namespace mounts

#endif